rem for /f %%i in (project_strings_for_build_osc.bat) do echo %%i
set BUILD_PROJS="curl jsoncpp SDL jthread jrtplib libevent log4x easySQLite stk x265 googletest"

set BUILD_SCRIPT_DIR=%cd%

cd ..
set BUILD_ROOT=%cd%

set ACTION=%1
set TYPE=%2
set OS=%3
set ARCH=%4

set BUILD_TYPE=
set BUILD_OS=windows
set BUILD_ARCH=
set BUILD_CFLAG=-fPIC
set BUILD_CMAKE_GFLAG=Visual Studio 12

::set BUILD_EXTRA_DFLAG=-DCMAKE_USER_MAKE_RULES_OVERRIDE=%BUILD_SCRIPT_DIR%/msvc-md_2_mt.cmake

set BUILD_DEBUG_POSTFIX=
set BUILD_TOOLCHAINCHAIN_FREFIX=

if "x%TYPE%" == "xrelease" (set BUILD_TYPE=Release) else set BUILD_TYPE=Debug
if %BUILD_TYPE% == Debug set BUILD_DEBUG_POSTFIX=d
if %BUILD_TYPE% == Debug set BUILD_CFLAG=%BUILD_CFLAG% -g


if "x%ARCH%" == "xx64" (set BUILD_ARCH=x64) else set BUILD_ARCH=x32
if %BUILD_ARCH% == x64 set BUILD_CMAKE_GFLAG=%BUILD_CMAKE_GFLAG% Win64

cd %BUILD_ROOT%

echo "ACTION: %ACTION%"
echo "BUILD_OS: %BUILD_OS%"
echo "BUILD_ARCH: %BUILD_ARCH%"
echo "BUILD_TYPE: %BUILD_TYPE%"
echo "BUILD_DEBUG_POSTFIX: %BUILD_DEBUG_POSTFIX%"
echo "BUILD_CFLAG: %BUILD_CFLAG%"
echo "BUILD_CMAKE_GFLAG: %BUILD_CMAKE_GFLAG%"

set BUILD_INSTALL=%BUILD_ROOT%\build-osc-install

set BUILD_INSTALL_INC=%BUILD_INSTALL%\include
set BUILD_INSTALL_LIB=%BUILD_INSTALL%\lib\%BUILD_OS%\%BUILD_ARCH%

mkdir %BUILD_INSTALL_INC%
mkdir %BUILD_INSTALL_LIB%

echo "BUILD_INSTALL: %BUILD_INSTALL%"
echo "BUILD_INSTALL_INC: %BUILD_INSTALL_INC%"
echo "BUILD_INSTALL_LIB: %BUILD_INSTALL_LIB%"

set BUILD_SUB_DIR=build_%BUILD_OS%\%BUILD_ARCH%
set BUILD_SUB_DIR_INSTALL=%BUILD_SUB_DIR%\install
set BUILD_SUB_DIR_INC=%BUILD_SUB_DIR_INSTALL%\include
set BUILD_SUB_DIR_LIB=%BUILD_SUB_DIR_INSTALL%\lib

rem call "D:\Program Files (x86)\Microsoft %BUILD_CMAKE_GFLAG%.0\VC\"
if "x%BUILD_CALL_ENV%" == "x" call "D:\Program Files (x86)\Microsoft %BUILD_CMAKE_GFLAG%.0\Common7\Tools\VsDevCmd.bat" 
if "x%BUILD_CALL_ENV%" == "x" set BUILD_CALL_ENV=TRUE

rem rem build curl
rem #######################################
rem rem build curl
rem #######################################

set BUILD_PROJ=curl
cd %BUILD_ROOT%\%BUILD_PROJ%

if %ACTION% == config (if exist %BUILD_SUB_DIR% rd /S /Q %BUILD_SUB_DIR%)

md %BUILD_SUB_DIR%
cd %BUILD_SUB_DIR% 

cmake -DCMAKE_INSTALL_PREFIX=.\install -DCMAKE_DEBUG_POSTFIX="%BUILD_DEBUG_POSTFIX%" -DCMAKE_LDAP_LIB=OFF -DCMAKE_LBER_LIB=OFF -DCURL_STATICLIB=ON %BUILD_EXTRA_DFLAG% -G "%BUILD_CMAKE_GFLAG%" %BUILD_ROOT%\%BUILD_PROJ% 

if %ACTION% == build (msbuild INSTALL.vcxproj /t:Build /p:Configuration=%BUILD_TYPE%)
if %ACTION% == rebuild (msbuild INSTALL.vcxproj /t:Rebuild /p:Configuration=%BUILD_TYPE%)

cd %BUILD_ROOT%\%BUILD_PROJ%
if %ACTION% == build (xcopy /s /Y %BUILD_SUB_DIR_INC% %BUILD_INSTALL_INC%)
if %ACTION% == build (copy %BUILD_SUB_DIR_LIB%\*.lib %BUILD_INSTALL_LIB%)

if %ACTION% == rebuild (xcopy /s /Y %BUILD_SUB_DIR_INC% %BUILD_INSTALL_INC%)
if %ACTION% == rebuild (copy %BUILD_SUB_DIR_LIB%\*.lib %BUILD_INSTALL_LIB%)

rem #######################################
rem build jsoncpp 
rem #######################################

set BUILD_PROJ=jsoncpp
cd %BUILD_ROOT%\%BUILD_PROJ%

if %ACTION% == config (if exist %BUILD_SUB_DIR% rd /S /Q %BUILD_SUB_DIR%)

md %BUILD_SUB_DIR%
cd %BUILD_SUB_DIR% 

cmake -DCMAKE_INSTALL_PREFIX=.\install -DCMAKE_DEBUG_POSTFIX="%BUILD_DEBUG_POSTFIX%" -DBUILD_STATIC_LIBS=ON -DBUILD_SHARED_LIBS=OFF %BUILD_EXTRA_DFLAG% -G "%BUILD_CMAKE_GFLAG%" %BUILD_ROOT%\%BUILD_PROJ% 

if %ACTION% == build (msbuild INSTALL.vcxproj /t:Build /p:Configuration=%BUILD_TYPE%)
if %ACTION% == rebuild (msbuild INSTALL.vcxproj /t:Rebuild /p:Configuration=%BUILD_TYPE%)

cd %BUILD_ROOT%\%BUILD_PROJ%
if %ACTION% == build (xcopy /s /Y %BUILD_SUB_DIR_INC% %BUILD_INSTALL_INC%)
if %ACTION% == build (copy %BUILD_SUB_DIR_LIB%\*.lib %BUILD_INSTALL_LIB%)

if %ACTION% == rebuild (xcopy /s /Y %BUILD_SUB_DIR_INC% %BUILD_INSTALL_INC%)
if %ACTION% == rebuild (copy %BUILD_SUB_DIR_LIB%\*.lib %BUILD_INSTALL_LIB%)

rem #######################################
rem build SDL 
rem #######################################

set BUILD_PROJ=SDL
cd %BUILD_ROOT%\%BUILD_PROJ%

if %ACTION% == config (if exist %BUILD_SUB_DIR% rd /S /Q %BUILD_SUB_DIR%)

md %BUILD_SUB_DIR%
cd %BUILD_SUB_DIR% 

cmake -DCMAKE_INSTALL_PREFIX=.\install -DCMAKE_DEBUG_POSTFIX="%BUILD_DEBUG_POSTFIX%" -DSDL_STATIC=ON -DSDL_SHARED=OFF %BUILD_EXTRA_DFLAG% -G "%BUILD_CMAKE_GFLAG%" %BUILD_ROOT%\%BUILD_PROJ% 

if %ACTION% == build (msbuild INSTALL.vcxproj /t:Build /p:Configuration=%BUILD_TYPE%)
if %ACTION% == rebuild (msbuild INSTALL.vcxproj /t:Rebuild /p:Configuration=%BUILD_TYPE%)

cd %BUILD_ROOT%\%BUILD_PROJ%
if %ACTION% == build (xcopy /s /Y %BUILD_SUB_DIR_INC% %BUILD_INSTALL_INC%)
if %ACTION% == build (copy %BUILD_SUB_DIR_LIB%\*.lib %BUILD_INSTALL_LIB%)

if %ACTION% == rebuild (xcopy /s /Y %BUILD_SUB_DIR_INC% %BUILD_INSTALL_INC%)
if %ACTION% == rebuild (copy %BUILD_SUB_DIR_LIB%\*.lib %BUILD_INSTALL_LIB%)

rem #######################################
rem build libevent 
rem #######################################

set BUILD_PROJ=libevent
cd %BUILD_ROOT%\%BUILD_PROJ%

if %ACTION% == config (if exist %BUILD_SUB_DIR% rd /S /Q %BUILD_SUB_DIR%)

md %BUILD_SUB_DIR%
cd %BUILD_SUB_DIR% 

cmake -DCMAKE_INSTALL_PREFIX=.\install -DCMAKE_DEBUG_POSTFIX="%BUILD_DEBUG_POSTFIX%" -DBUILD_STATIC_LIBS=ON -DBUILD_SHARED_LIBS=OFF -DEVENT__DISABLE_OPENSSL=ON %BUILD_EXTRA_DFLAG% -G "%BUILD_CMAKE_GFLAG%" %BUILD_ROOT%\%BUILD_PROJ% 

if %ACTION% == build (msbuild INSTALL.vcxproj /t:Build /p:Configuration=%BUILD_TYPE%)
if %ACTION% == rebuild (msbuild INSTALL.vcxproj /t:Rebuild /p:Configuration=%BUILD_TYPE%)

cd %BUILD_ROOT%\%BUILD_PROJ%
if %ACTION% == build (xcopy /s /Y %BUILD_SUB_DIR_INC% %BUILD_INSTALL_INC%)
if %ACTION% == build (copy %BUILD_SUB_DIR_LIB%\*.lib %BUILD_INSTALL_LIB%)

if %ACTION% == rebuild (xcopy /s /Y %BUILD_SUB_DIR_INC% %BUILD_INSTALL_INC%)
if %ACTION% == rebuild (copy %BUILD_SUB_DIR_LIB%\*.lib %BUILD_INSTALL_LIB%)

rem #######################################
rem build jthread 
rem #######################################

set BUILD_PROJ=jthread
cd %BUILD_ROOT%\%BUILD_PROJ%

if %ACTION% == config (if exist %BUILD_SUB_DIR% rd /S /Q %BUILD_SUB_DIR%)

md %BUILD_SUB_DIR%
cd %BUILD_SUB_DIR% 

cmake -DCMAKE_INSTALL_PREFIX=.\install -DCMAKE_DEBUG_POSTFIX="%BUILD_DEBUG_POSTFIX%" -DBUILD_STATIC_LIBS=ON -DBUILD_SHARED_LIBS=OFF -DEVENT__DISABLE_OPENSSL=ON %BUILD_EXTRA_DFLAG% -G "%BUILD_CMAKE_GFLAG%" %BUILD_ROOT%\%BUILD_PROJ% 

if %ACTION% == build (msbuild INSTALL.vcxproj /t:Build /p:Configuration=%BUILD_TYPE%)
if %ACTION% == rebuild (msbuild INSTALL.vcxproj /t:Rebuild /p:Configuration=%BUILD_TYPE%)

cd %BUILD_ROOT%\%BUILD_PROJ%
if %ACTION% == build (xcopy /s /Y %BUILD_SUB_DIR_INC% %BUILD_INSTALL_INC%)
if %ACTION% == build (copy %BUILD_SUB_DIR_LIB%\*.lib %BUILD_INSTALL_LIB%)

if %ACTION% == rebuild (xcopy /s /Y %BUILD_SUB_DIR_INC% %BUILD_INSTALL_INC%)
if %ACTION% == rebuild (copy %BUILD_SUB_DIR_LIB%\*.lib %BUILD_INSTALL_LIB%)

rem #######################################
rem build jrtplib 
rem #######################################

set BUILD_PROJ=jrtplib
cd %BUILD_ROOT%\%BUILD_PROJ%

if %ACTION% == config (if exist %BUILD_SUB_DIR% rd /S /Q %BUILD_SUB_DIR%)

md %BUILD_SUB_DIR%
cd %BUILD_SUB_DIR% 

cmake -DCMAKE_INSTALL_PREFIX=.\install -DCMAKE_DEBUG_POSTFIX="%BUILD_DEBUG_POSTFIX%" -DBUILD_STATIC_LIBS=ON -DBUILD_SHARED_LIBS=OFF -DEVENT__DISABLE_OPENSSL=ON -DJThread_DIR:PATH="%BUILD_ROOT%\jthread\%BUILD_SUB_DIR%\cmake" %BUILD_EXTRA_DFLAG% -G "%BUILD_CMAKE_GFLAG%" %BUILD_ROOT%\%BUILD_PROJ% 
                
if %ACTION% == build (msbuild INSTALL.vcxproj /t:Build /p:Configuration=%BUILD_TYPE%)
if %ACTION% == rebuild (msbuild INSTALL.vcxproj /t:Rebuild /p:Configuration=%BUILD_TYPE%)

cd %BUILD_ROOT%\%BUILD_PROJ%
if %ACTION% == build (xcopy /s /Y %BUILD_SUB_DIR_INC% %BUILD_INSTALL_INC%)
if %ACTION% == build (copy %BUILD_SUB_DIR_LIB%\*.lib %BUILD_INSTALL_LIB%)

if %ACTION% == rebuild (xcopy /s /Y %BUILD_SUB_DIR_INC% %BUILD_INSTALL_INC%)
if %ACTION% == rebuild (copy %BUILD_SUB_DIR_LIB%\*.lib %BUILD_INSTALL_LIB%)

rem #######################################
rem build log4x 
rem #######################################

set BUILD_PROJ=log4x
cd %BUILD_ROOT%\%BUILD_PROJ%

if %ACTION% == config (if exist %BUILD_SUB_DIR% rd /S /Q %BUILD_SUB_DIR%)

md %BUILD_SUB_DIR%
cd %BUILD_SUB_DIR% 

cmake -DCMAKE_INSTALL_PREFIX=.\install -DCMAKE_DEBUG_POSTFIX="%BUILD_DEBUG_POSTFIX%" -DBUILD_STATIC_LIBS=OFF -DBUILD_SHARED_LIBS=ON %BUILD_EXTRA_DFLAG% -G "%BUILD_CMAKE_GFLAG%" %BUILD_ROOT%\%BUILD_PROJ% 
                
if %ACTION% == build (msbuild INSTALL.vcxproj /t:Build /p:Configuration=%BUILD_TYPE%)
if %ACTION% == rebuild (msbuild INSTALL.vcxproj /t:Rebuild /p:Configuration=%BUILD_TYPE%)

cd %BUILD_ROOT%\%BUILD_PROJ%
if %ACTION% == build (xcopy /s /Y %BUILD_SUB_DIR_INC% %BUILD_INSTALL_INC%)
if %ACTION% == build (copy %BUILD_SUB_DIR_LIB%\*.lib %BUILD_INSTALL_LIB%)

if %ACTION% == rebuild (xcopy /s /Y %BUILD_SUB_DIR_INC% %BUILD_INSTALL_INC%)
if %ACTION% == rebuild (copy %BUILD_SUB_DIR_LIB%\*.lib %BUILD_INSTALL_LIB%)

rem #######################################
rem build j2x 
rem #######################################

set BUILD_PROJ=j2x
cd %BUILD_ROOT%\%BUILD_PROJ%

if %ACTION% == config (if exist %BUILD_SUB_DIR% rd /S /Q %BUILD_SUB_DIR%)

md %BUILD_SUB_DIR%
cd %BUILD_SUB_DIR% 

cmake -DCMAKE_INSTALL_PREFIX=.\install -DCMAKE_DEBUG_POSTFIX="%BUILD_DEBUG_POSTFIX%" -DBUILD_STATIC_LIBS=ON -DBUILD_SHARED_LIBS=OFF %BUILD_EXTRA_DFLAG% -G "%BUILD_CMAKE_GFLAG%" %BUILD_ROOT%\%BUILD_PROJ% 
                
if %ACTION% == build (msbuild INSTALL.vcxproj /t:Build /p:Configuration=%BUILD_TYPE%)
if %ACTION% == rebuild (msbuild INSTALL.vcxproj /t:Rebuild /p:Configuration=%BUILD_TYPE%)

cd %BUILD_ROOT%\%BUILD_PROJ%
if %ACTION% == build (xcopy /s /Y %BUILD_SUB_DIR_INC% %BUILD_INSTALL_INC%)
if %ACTION% == build (copy %BUILD_SUB_DIR_LIB%\*.lib %BUILD_INSTALL_LIB%)

if %ACTION% == rebuild (xcopy /s /Y %BUILD_SUB_DIR_INC% %BUILD_INSTALL_INC%)
if %ACTION% == rebuild (copy %BUILD_SUB_DIR_LIB%\*.lib %BUILD_INSTALL_LIB%)

rem #######################################
rem build easySQLite 
rem #######################################

set BUILD_PROJ=easySQLite
cd %BUILD_ROOT%\%BUILD_PROJ%

if %ACTION% == config (if exist %BUILD_SUB_DIR% rd /S /Q %BUILD_SUB_DIR%)

md %BUILD_SUB_DIR%
cd %BUILD_SUB_DIR% 

cmake -DCMAKE_INSTALL_PREFIX=.\install -DCMAKE_DEBUG_POSTFIX="%BUILD_DEBUG_POSTFIX%" -DBUILD_STATIC_LIBS=ON -DBUILD_SHARED_LIBS=OFF %BUILD_EXTRA_DFLAG% -G "%BUILD_CMAKE_GFLAG%" %BUILD_ROOT%\%BUILD_PROJ% 
                
if %ACTION% == build (msbuild INSTALL.vcxproj /t:Build /p:Configuration=%BUILD_TYPE%)
if %ACTION% == rebuild (msbuild INSTALL.vcxproj /t:Rebuild /p:Configuration=%BUILD_TYPE%)

cd %BUILD_ROOT%\%BUILD_PROJ%
if %ACTION% == build (xcopy /s /Y %BUILD_SUB_DIR_INC% %BUILD_INSTALL_INC%)
if %ACTION% == build (copy %BUILD_SUB_DIR_LIB%\*.lib %BUILD_INSTALL_LIB%)

if %ACTION% == rebuild (xcopy /s /Y %BUILD_SUB_DIR_INC% %BUILD_INSTALL_INC%)
if %ACTION% == rebuild (copy %BUILD_SUB_DIR_LIB%\*.lib %BUILD_INSTALL_LIB%)

rem #######################################
rem build stk 
rem #######################################

set BUILD_PROJ=stk
cd %BUILD_ROOT%\%BUILD_PROJ%

if %ACTION% == config (if exist %BUILD_SUB_DIR% rd /S /Q %BUILD_SUB_DIR%)

md %BUILD_SUB_DIR%
cd %BUILD_SUB_DIR% 

cmake -DCMAKE_INSTALL_PREFIX=.\install -DCMAKE_DEBUG_POSTFIX="%BUILD_DEBUG_POSTFIX%" -DBUILD_STATIC_LIBS=ON -DBUILD_SHARED_LIBS=OFF %BUILD_EXTRA_DFLAG% -G "%BUILD_CMAKE_GFLAG%" %BUILD_ROOT%\%BUILD_PROJ% 
                
if %ACTION% == build (msbuild INSTALL.vcxproj /t:Build /p:Configuration=%BUILD_TYPE%)
if %ACTION% == rebuild (msbuild INSTALL.vcxproj /t:Rebuild /p:Configuration=%BUILD_TYPE%)

cd %BUILD_ROOT%\%BUILD_PROJ%
if %ACTION% == build (xcopy /s /Y %BUILD_SUB_DIR_INC% %BUILD_INSTALL_INC%)
if %ACTION% == build (copy %BUILD_SUB_DIR_LIB%\*.lib %BUILD_INSTALL_LIB%)

if %ACTION% == rebuild (xcopy /s /Y %BUILD_SUB_DIR_INC% %BUILD_INSTALL_INC%)
if %ACTION% == rebuild (copy %BUILD_SUB_DIR_LIB%\*.lib %BUILD_INSTALL_LIB%)

rem #######################################
rem build x265 
rem #######################################

set BUILD_PROJ=x265
cd %BUILD_ROOT%\%BUILD_PROJ%

set NASM_PATH=D:\Program Files\NASM
set PATH=%NASM_PATH%;%PATH%

if %ACTION% == config (if exist %BUILD_SUB_DIR% rd /S /Q %BUILD_SUB_DIR%)

md %BUILD_SUB_DIR%
cd %BUILD_SUB_DIR% 

cmake -DCMAKE_INSTALL_PREFIX=.\install -DCMAKE_DEBUG_POSTFIX="%BUILD_DEBUG_POSTFIX%" -DENABLE_SHARED=OFF %BUILD_EXTRA_DFLAG% -G "%BUILD_CMAKE_GFLAG%" %BUILD_ROOT%\%BUILD_PROJ%\source
                
if %ACTION% == build (msbuild INSTALL.vcxproj /t:Build /p:Configuration=%BUILD_TYPE%)
if %ACTION% == rebuild (msbuild INSTALL.vcxproj /t:Rebuild /p:Configuration=%BUILD_TYPE%)

cd %BUILD_ROOT%\%BUILD_PROJ%
if %ACTION% == build (xcopy /s /Y %BUILD_SUB_DIR_INC% %BUILD_INSTALL_INC%)
if %ACTION% == build (copy %BUILD_SUB_DIR_LIB%\*.lib %BUILD_INSTALL_LIB%)

if %ACTION% == rebuild (xcopy /s /Y %BUILD_SUB_DIR_INC% %BUILD_INSTALL_INC%)
if %ACTION% == rebuild (copy %BUILD_SUB_DIR_LIB%\*.lib %BUILD_INSTALL_LIB%)

rem #######################################
rem build libjpeg-turbo 
rem #######################################

set BUILD_PROJ=libjpeg-turbo
cd %BUILD_ROOT%\%BUILD_PROJ%

set NASM_PATH=D:\Program Files\NASM
set PATH=%NASM_PATH%;%PATH%

if %ACTION% == config (if exist %BUILD_SUB_DIR% rd /S /Q %BUILD_SUB_DIR%)

md %BUILD_SUB_DIR%
cd %BUILD_SUB_DIR% 

cmake -DCMAKE_INSTALL_PREFIX=.\install -DCMAKE_DEBUG_POSTFIX="%BUILD_DEBUG_POSTFIX%" -DENABLE_SHARED=OFF -DWITH_CRT_DLL=ON %BUILD_EXTRA_DFLAG% -G "%BUILD_CMAKE_GFLAG%" %BUILD_ROOT%\%BUILD_PROJ%\
                
if %ACTION% == build (msbuild INSTALL.vcxproj /t:Build /p:Configuration=%BUILD_TYPE%)
if %ACTION% == rebuild (msbuild INSTALL.vcxproj /t:Rebuild /p:Configuration=%BUILD_TYPE%)

cd %BUILD_ROOT%\%BUILD_PROJ%
if %ACTION% == build (xcopy /s /Y %BUILD_SUB_DIR_INC% %BUILD_INSTALL_INC%)
if %ACTION% == build (copy %BUILD_SUB_DIR_LIB%\*.lib %BUILD_INSTALL_LIB%)

if %ACTION% == rebuild (xcopy /s /Y %BUILD_SUB_DIR_INC% %BUILD_INSTALL_INC%)
if %ACTION% == rebuild (copy %BUILD_SUB_DIR_LIB%\*.lib %BUILD_INSTALL_LIB%)


rem #######################################
rem build googletest 
rem #######################################

set BUILD_PROJ=googletest
cd %BUILD_ROOT%\%BUILD_PROJ%

if %ACTION% == config (if exist %BUILD_SUB_DIR% rd /S /Q %BUILD_SUB_DIR%)

md %BUILD_SUB_DIR%
cd %BUILD_SUB_DIR% 

cmake -DCMAKE_INSTALL_PREFIX=.\install -DCMAKE_DEBUG_POSTFIX="%BUILD_DEBUG_POSTFIX%" -G "%BUILD_CMAKE_GFLAG%" %BUILD_ROOT%\%BUILD_PROJ%\
                
if %ACTION% == build (msbuild INSTALL.vcxproj /t:Build /p:Configuration=%BUILD_TYPE%)
if %ACTION% == rebuild (msbuild INSTALL.vcxproj /t:Rebuild /p:Configuration=%BUILD_TYPE%)

cd %BUILD_ROOT%\%BUILD_PROJ%
if %ACTION% == build (xcopy /s /Y %BUILD_SUB_DIR_INC% %BUILD_INSTALL_INC%)
if %ACTION% == build (copy %BUILD_SUB_DIR_LIB%\*.lib %BUILD_INSTALL_LIB%)

if %ACTION% == rebuild (xcopy /s /Y %BUILD_SUB_DIR_INC% %BUILD_INSTALL_INC%)
if %ACTION% == rebuild (copy %BUILD_SUB_DIR_LIB%\*.lib %BUILD_INSTALL_LIB%)

rem pause
